package org.iabako.shared.iservice.business;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
import org.iabako.shared.entity.business.Service;
import org.iabako.shared.entity.user.Enterprise;
import org.iabako.shared.exception.IabakoActionForbiddenException;
import org.iabako.shared.exception.IabakoUniqueConstraintException;
import org.iabako.shared.iservice.generic.*;

import java.util.List;

/**
 * Created by jose on 17/03/14.
 */

@RemoteServiceRelativePath("iabakoServices/serviceService")
public interface ServiceService extends SearchService, SuggestService, CRUDService, BusinessEntityService, TaxService, RemoteService {

    Service save(Service service) throws IabakoActionForbiddenException, IabakoUniqueConstraintException;

    List<Service> getServices();

    Service getByNumber(Enterprise enterprise, String number);
}
